package IO;

public class HaLo {
    public static void hannota(char A,char B,char C,int n){
            if (n==1){
                System.out.println("从"+A+"柱移动到"+C+"柱");
                return;
            }
            hannota(A,C,B,n-1);
        System.out.println("从"+A+"柱移动到"+C+"柱");
        hannota(B,A,C,n-1);
    }

    public static void main(String[] args) {

        HaLo.hannota('1','2','3',3);
    }
}
